<?php
class question extends CActiveRecord 
{
	public static function model($className=__CLASS__)
	{
		return parent::model($className);		
	}
	public function tableName()
	{
		return 'question';
	}
	
	public function relations() 
	{
		return array(
			'answer'=>array(self::HAS_MANY,'answer','question_id'),		
		);
	}
}